package com.softer.chengxin.common.config;

/**
 * 通用异常返回格式
 *
 * @author Gong Zhiyang
 * @date 2018/9/26
 */
public class CourseException extends RuntimeException {

    private int data;
    private String message;

    public CourseException(int data, String message) {
        this.data = data;
        this.message = message;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}